<!--运营管理-->
<template>
    <div style="overflow: hidden">
        <div style="position: fixed;width: 100%;background: #fff;z-index: 99;">
            <bar text="运营管理"></bar>
        </div>
        <div class="list" v-for="(item,index) in listData" :key="item.id" @click="jump(index)">
            <div style="display: flex;justify-content: flex-start">
                <div class="flag">
                    <img :src="item.noSrc" alt="" style="width: 100%;height: 100%;">
                    <!--                  <img :src="item.noSrc" alt="" style="width: 100%;height: 100%;" >-->
                </div>
                <div class="flagName">{{item.name}}</div>
            </div>
            <div class="row">
                <img src="../../assets/imgs/home/noRow.png" alt="" style="width: 100%;height: 100%;">
            </div>
        </div>
        <div style="width: 100%;height: 50px;">

        </div>
    </div>
</template>

<script>
    import bar from "../../components/topBar";

    export default {
        name: "operationManagement",
        components: {
            bar
        },
        data() {
            return {
                check: false,
                listData: [
                    {
                        src: require('../../assets/imgs/home/six.png'),
                        noSrc: require('../../assets/imgs/home/noSix.png'),
                        name: '客流量',
                        check: false
                    },
                    {
                        src: require('../../assets/imgs/home/eight.png'),
                        noSrc: require('../../assets/imgs/home/noEight.png'),
                        name: '销售额',
                        check: false
                    },
                    {
                        src: require('../../assets/imgs/home/seven.png'),
                        noSrc: require('../../assets/imgs/home/noSeven.png'),
                        name: '集客力',
                        check: false
                    },
                    {
                        src: require('../../assets/imgs/home/nine.png'),
                        noSrc: require('../../assets/imgs/home/noNine.png'),
                        name: '坪效值',
                        check: false
                    },
                    {
                        src: require('../../assets/imgs/home/ten.png'),
                        noSrc: require('../../assets/imgs/home/noten.png'),
                        name: '商铺评级',
                        check: false
                    },
                    {
                        src: require('../../assets/imgs/home/eleven.png'),
                        noSrc: require('../../assets/imgs/home/noEleven.png'),
                        name: '业态分布',
                        check: false
                    },
                    {
                        src: require('../../assets/imgs/home/twelve.png'),
                        noSrc: require('../../assets/imgs/home/noTwelve.png'),
                        name: '商铺转化率',
                        check: false
                    },
                    {
                        src: require('../../assets/imgs/home/threen.png'),
                        noSrc: require('../../assets/imgs/home/noThreen.png'),
                        name: '智能评估',
                        check: false
                    }
                ]
            }
        },
        methods: {
            jump(index) {
                console.log(index)
                if (index == 0) {
                    this.$router.push({path: "/map", query: {type: index}})
                } else if (index == 1) {
                    this.$router.push({path: "/map", query: {type: index}})
                } else if (index == 2) {
                    this.$router.push({path: "/map", query: {type: index}})
                } else if (index == 3) {
                    this.$router.push({path: "/map", query: {type: index}})
                } else if (index == 4) {
                    this.$router.push({path: "/shopGread"})
                } else if (index == 5) {
                    this.$router.push({path: "/distribution"})
                } else if (index == 6) {
                    this.$router.push({path: "/conversion"})
                }
            }
        }
    }
</script>

<style scoped lang="scss">
    .list {
        width: 345px;
        height: 70px;
        margin: auto;
        margin-top: 50px;
        border-bottom: 1px solid #E1E1E1;
        padding: 10px 20px;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        /*background-color: #42b983;*/
        .flag {
            width: 17px;
            height: 18px;
            margin-top: 18px;
        }

        .flagName {
            font-size: 15px;
            font-weight: 400;
            color: rgba(102, 102, 102, 1);
            line-height: 55px;
            margin-left: 17px;
        }

        .row {
            width: 10px;
            height: 19px;
            margin-top: 18px;
        }

    }
</style>
